<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style type="text/css">
            .addBg {
                background: #f00;
                color: #fff;
            }
            .bigger {
                font-size:20px;
            }
        </style>
        <script type="text/javascript" src="jquery/jquery-1.11.3.js"></script>
        
        <script type="text/javascript">
            $(function(){
                //Jquery通过css来指定样式 甚至完美支持opacity透明度
                $("#d1").css("height",90+"px");
                $("#d1").css("width",90+"px").css("background","#00f")
                        .css("color","#fff")
                        .css("opacity","0.6").height(100).width(100)
                        ;
                //常用的方法S
                $("#d1").click(function(){
                    $(this).width($(this).width()+20);
                    $(this).height($(this).height()+20);
                });
                
                
            });
        </script>
    </head>
    <body>
        <div id="d1">
            点击一下
        </div>
    </body>
</html>
